Skip to content

fix: ci docker login issue #6

fix: ci docker login issue

fix: ci docker login issue #6

Workflow file for this run

# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: CI
on:
push:
branches: [ "master" ]
jobs:
build-image:
runs-on: ubuntu-latest
steps:
-
name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: $DOCKER_USERNAME
password: ${{ secrets.DOCKER_PASSWORD }}
- uses: actions/checkout@v3
-
name: Build the Docker image
run: |
make build
make image
if [[ ${{ github.ref_name }} == "master" ]]; then make push-image; fi
if [[ ${{ github.ref_name }} == "develop" ]]; then make push-develop; fi
if [[ ${{ github.ref_type }} == "tag" ]]; then make push-tag; fi