Skip to content

Commit

Permalink
(temporary) change GitHub action to build another Linux image
Browse files Browse the repository at this point in the history
  • Loading branch information
hkfgo committed Sep 30, 2024
1 parent 31669c5 commit b82b73d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/templates-build-push-image.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: Build and Push (Linux)
on:
workflow_call:
workflow_dispatch:
inputs:
image_name:
required: true
Expand All @@ -15,22 +16,21 @@ jobs:
linux:
name: Build & Push (Linux)
runs-on: ubuntu-latest
permissions:
packages: write
steps:
- name: Checkout Code
uses: actions/checkout@v4

- name: "Determine preview artifact version"
run: |
echo "artifact_full_version=${{ inputs.version }}-${{ github.sha }}" >> $GITHUB_ENV
- name: "Determine full container image uri (commit)"
run: |
echo "image_commit_uri=${{ inputs.image_name }}:$artifact_full_version" >> $GITHUB_ENV
- name: "Determine full container image uri (latest)"
run: |
echo "image_latest_uri=${{ inputs.image_name }}:${{ inputs.version }}" >> $GITHUB_ENV
- name: Determine container image metadata
uses: docker/[email protected]
with:
Expand All @@ -40,7 +40,7 @@ jobs:
uses: docker/login-action@v3
with:
registry: ghcr.io
username: tomkerkhove
username: hkfgo
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push preview image
Expand All @@ -49,5 +49,5 @@ jobs:
build-args: VERSION="${{ env.artifact_full_version }}"
context: ./src/
file: ./src/${{ inputs.project_name }}/Dockerfile.linux
tags: ${{ env.image_commit_uri }},${{ env.image_latest_uri }}
tags: ghcr.io/hkfgo/${{ env.image_commit_uri }},ghcr.io/hkfgo/${{ env.image_latest_uri }}
push: true

0 comments on commit b82b73d

Please sign in to comment.