Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ahnl committed Mar 6, 2024
2 parents 84e8296 + b33bbb0 commit 909a8cf
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,25 @@ name: Publish Docker image
on:
release:
types: [published]
workflow_dispatch:

permissions:
contents: read
packages: write

jobs:
push_to_registry:
name: Push Docker image to Docker Hub
runs-on: self-hosted
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2

- 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@v1
Expand All @@ -23,9 +31,10 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: ghcr.io/testausserveri/koirameili:latest,ghcr.io/testausserveri/koirameili:${{ github.event.release.tag_name }}
platforms: linux/amd64,linux/arm64
tags: ghcr.io/testausserveri/koirameili:latest,ghcr.io/testausserveri/koirameili:${{ github.ref_name }}

0 comments on commit 909a8cf

Please sign in to comment.