Skip to content

Commit

Permalink
added workflow for creating a snapshot image
Browse files Browse the repository at this point in the history
  • Loading branch information
rkthtrifork committed May 27, 2024
1 parent 6893c61 commit e6d09f7
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions .github/workflows/docker-create-snapshot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,6 @@ jobs:
id: get-package-suffix
run: echo "branch-name=$(echo '${{ github.ref_name }}' | sed 's/[^a-zA-Z0-9]/-/g')" >> $GITHUB_OUTPUT

- name: Get version
id: get-version
uses: trifork/cheetah-infrastructure-utils-workflows/.github/actions/versioning/get-version@main
with:
file-path: ${{ inputs.dockerfile-path || format('{0}/Dockerfile', inputs.context) }}
prefix: 'LABEL version=\"'
suffix: '\"'

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v3

Expand All @@ -56,7 +48,7 @@ jobs:
context: ${{ inputs.context }}
file: ${{ inputs.dockerfile-path }}
platforms: linux/amd64
tags: ghcr.io/trifork/${{ inputs.image-name }}:${{ steps.get-version.outputs.version }}-${{ steps.get-package-suffix.outputs.branch-name }}-SNAPSHOT-${{ github.run_number }}
tags: ghcr.io/trifork/${{ inputs.image-name }}:2.6.0-${{ steps.get-package-suffix.outputs.branch-name }}-SNAPSHOT-${{ github.run_number }}
push: true
secrets: |
GITHUB_ACTOR=${{ github.actor }}
Expand Down

0 comments on commit e6d09f7

Please sign in to comment.