Skip to content

Commit

Permalink
github action image build
Browse files Browse the repository at this point in the history
  • Loading branch information
hkfgo committed Jun 16, 2024
1 parent a457a98 commit 6647ef1
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 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,6 +16,8 @@ jobs:
linux:
name: Build & Push (Linux)
runs-on: ubuntu-latest
permissions:
packages: write
steps:
- name: Checkout Code
uses: actions/checkout@v4
Expand All @@ -40,7 +43,7 @@ jobs:
uses: docker/login-action@v3
with:
registry: ghcr.io
username: tomkerkhove
username: locmai
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push preview image
Expand All @@ -49,5 +52,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 }}
push: true
tags: ghcr.io/locmai/${{ env.image_commit_uri }},ghcr.io/locmai/${{ env.image_latest_uri }}
push: true

0 comments on commit 6647ef1

Please sign in to comment.