aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/docker.yml
diff options
context:
space:
mode:
authorMatt Strapp <matt@mattstrapp.net>2024-10-30 11:37:55 -0500
committerMatt Strapp <matt@mattstrapp.net>2024-10-30 11:37:55 -0500
commit25be625b261b7aaabb08d1e1031b559d9e2a2fb1 (patch)
treebbe3b6d4757aa0efd4e180b2377d613dc27e333d /.github/workflows/docker.yml
parentOops (diff)
downloadlocusts-25be625b261b7aaabb08d1e1031b559d9e2a2fb1.tar
locusts-25be625b261b7aaabb08d1e1031b559d9e2a2fb1.tar.gz
locusts-25be625b261b7aaabb08d1e1031b559d9e2a2fb1.tar.bz2
locusts-25be625b261b7aaabb08d1e1031b559d9e2a2fb1.tar.lz
locusts-25be625b261b7aaabb08d1e1031b559d9e2a2fb1.tar.xz
locusts-25be625b261b7aaabb08d1e1031b559d9e2a2fb1.tar.zst
locusts-25be625b261b7aaabb08d1e1031b559d9e2a2fb1.zip
ci: only run on vX.Y.Z tags
Signed-off-by: Matt Strapp <matt@mattstrapp.net>
Diffstat (limited to '')
-rw-r--r--.github/workflows/docker.yml14
1 files changed, 10 insertions, 4 deletions
diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml
index 0b10a77..74072c7 100644
--- a/.github/workflows/docker.yml
+++ b/.github/workflows/docker.yml
@@ -13,7 +13,6 @@ on:
- ".github/workflows/docker.yml"
env:
- REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
@@ -34,11 +33,18 @@ jobs:
id: meta
uses: docker/metadata-action@v5
with:
- images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- - name: Login to GitHub Registry
+ images: |
+ ghcr.io/${{ env.IMAGE_NAME }}
+ rosstheross/${{ env.IMAGE_NAME }}
+ - name: Login to DockerHub
uses: docker/login-action@v3
with:
- registry: ${{ env.REGISTRY }}
+ username: rosstheross
+ password: ${{ secrets.DOCKERHUB_TOKEN }}
+ - name: Login to GHCR
+ uses: docker/login-action@v3
+ with:
+ registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and Push