Skip to content

Commit

Permalink
ci: update docker build push
Browse files Browse the repository at this point in the history
  • Loading branch information
barelyhuman committed May 3, 2024
1 parent 942ed7b commit f9b11a0
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions .github/workflows/docker-pub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,27 @@ jobs:
run: echo "::set-output name=dtag::ghcr.io/barelyhuman/goblin:nightly"
id: meta

- name: Login to GitHub Container registry
uses: docker/login-action@v1
env:
GITHUB_USER: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: $GITHUB_USER
password: ${{ secrets.GH_TOKEN }}
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and Push Docker Image
- name: Build and push
uses: docker/build-push-action@v5
env:
REGISTRY: ghcr.io
OWNER: barelyhuman
OWNER: ${{ github.repository_owner }}
IMAGE_NAME: ${{ github.repository }}
uses: docker/build-push-action@v2
with:
context: .
file: Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.dtag }}
tags: ${{ steps.meta.outputs.dtag }}

0 comments on commit f9b11a0

Please sign in to comment.