Skip to content

Commit

Permalink
another attempt at fixing ghcr workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Archmonger committed Jul 1, 2024
1 parent 834398c commit 8fa91ec
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish Develop Docker Image
name: Publish Develop to DockerHub

on:
push:
Expand All @@ -23,8 +23,3 @@ jobs:
with:
push: true
tags: archmonger/conreq:develop
- name: Push to GitHub Container Registry
uses: matootie/[email protected]
with:
accessToken: ${{ github.token }}
tag: develop
26 changes: 26 additions & 0 deletions .github/workflows/publish-develop-ghcr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Publish Develop to GHCR

on:
push:
branches:
- develop

jobs:
docker:
runs-on: ubuntu-latest
steps:
- 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.actor }}
password: ${{ github.token }}
- name: Build and push to GitHub Container Registry
uses: docker/build-push-action@v6
with:
push: true
tags: ghcr.io/archmonger/conreq:develop
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish Latest Docker Image
name: Publish Latest to DockerHub

on:
release:
Expand All @@ -22,10 +22,3 @@ jobs:
with:
push: true
tags: archmonger/conreq:latest,archmonger/conreq:${{ github.event.release.tag_name }}
- name: Push to GitHub Container Registry
uses: matootie/[email protected]
with:
accessToken: ${{ github.token }}
tag: |
latest
${{ github.event.release.tag_name }}
25 changes: 25 additions & 0 deletions .github/workflows/publish-latest-ghcr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Publish Latest to GHCR

on:
release:
types: [published]

jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ github.token }}
- name: Build and push to Docker Hub
uses: docker/build-push-action@v6
with:
push: true
tags: ghcr.io/archmonger/conreq:latest,ghcr.io/archmonger/conreq:${{ github.event.release.tag_name }}

0 comments on commit 8fa91ec

Please sign in to comment.