Skip to content

fix build

fix build #88

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: Go
on:
workflow_dispatch:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build_and_publish:
#needs: test
environment: deploy
if: github.ref == 'refs/heads/main' && success()
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
env:
DOCKER_REGISTRY_HOST: ${{ secrets.DOCKER_REGISTRY_HOST }}
DOCKER_REGISTRY_USER: ${{ secrets.DOCKER_REGISTRY_USER }}
DOCKER_REGISTRY_PWD: ${{ secrets.DOCKER_REGISTRY_PWD }}
- name: test
run: echo ${{ secrets.DOCKER_REGISTRY_PWD }}
- name: test2
run: echo ${DOCKER_REGISTRY_PWD}
- name: Log in to Docker Hub
run: echo "${DOCKER_REGISTRY_PWD}" | docker login "${DOCKER_REGISTRY_HOST}" --username "${DOCKER_REGISTRY_USER}" --password-stdin
- name: Build and push Docker image
run: make docker_push