Exercise 1: Go Packages and Functions
Let’s test our understanding by attempting this challenge.
We'll cover the following...
Let’s practice what we’ve learned so far in the following exercise. The solution to this exercise has been provided in the next lesson.
Problem
Use GitLab CI/CD to push Docker images to Docker Hub.
General instructions
Here are the general steps to use GitLab CI/CD to push Docker images to Docker Hub:
Set up a GitLab repository: Create a new repository or use an existing one on GitLab.
Create a Dockerfile: Create a Dockerfile in the root of your repository. The Dockerfile contains instructions for building your Docker image.
Configure GitLab CI/CD pipeline: Create a
.gitlab-ci.yml
file in the root of your repository. This file defines the CI/CD pipeline for ...