Skip to content

Commit

Permalink
Add docker test image workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jsdanielh committed Nov 25, 2024
1 parent 87683e5 commit 48dec84
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/github_release_docker.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
name: Build + Release docker

on:
push:
tags:
- 'v*'
workflow_dispatch:

jobs:
rust_build:
Expand Down Expand Up @@ -49,10 +47,9 @@ jobs:
uses: docker/metadata-action@v5
with:
images: ghcr.io/${{ github.repository }}
flavor: latest=true
flavor: latest=false

- name: Login to image repository
if: github.ref_type == 'tag'
uses: docker/login-action@v3
with:
registry: ghcr.io
Expand All @@ -64,14 +61,14 @@ jobs:
with:
context: .
file: Dockerfile
push: ${{ github.ref_type == 'tag' }}
push: true
# This is required or a package with unknown architecture will be published too.
# See https://github.com/docker/build-push-action/issues/820 for further
# details.
# TODO - investigate further and see if we can find a solution where we
# don't have to set this.
provenance: false
tags: ${{ steps.meta.outputs.tags }}
tags: test
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha

0 comments on commit 48dec84

Please sign in to comment.