diff --git a/.github/workflows/build-facielbio2.yaml b/.github/workflows/build-facielbio2.yaml index 4e6a54b..41e3ae5 100644 --- a/.github/workflows/build-facielbio2.yaml +++ b/.github/workflows/build-facielbio2.yaml @@ -1,6 +1,8 @@ # https://josephrodriguezg.medium.com/build-and-publish-docker-images-with-github-actions-78be3b3fbb9b # https://github.com/docker/build-push-action -name: Build final facilebio image +# Using secrets: +# https://docs.docker.com/build/ci/github-actions/secrets/ +name: facilebio final on: push: branches: @@ -19,12 +21,11 @@ on: required: false default: 'gitty up' jobs: - build: + docker: name: Build & push docker image runs-on: ubuntu-latest env: IMG_NAME: facilebio/facilebio - GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} steps: - name: Checkout uses: actions/checkout@v4 @@ -47,6 +48,9 @@ jobs: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Build and push docker image uses: docker/build-push-action@v5 with: @@ -54,4 +58,4 @@ jobs: tags: ${{ env.IMG_NAME }}:latest context: facilebio secrets: | - GITHUB_PAT = GITHUB_PAT + "GITHUB_PAT=${{ secrets.GITHUB_TOKEN }}" diff --git a/facilebio/Makefile b/facilebio/Makefile index 7c79f92..f9e7634 100644 --- a/facilebio/Makefile +++ b/facilebio/Makefile @@ -58,4 +58,4 @@ dev: sleep 5 && open http://localhost:8080 push: - docker push $(TAG):$(VERSION) + docker push $(tag)