-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
598fc2e
commit 632ee81
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Build Docker image on tag | ||
|
||
on: push | ||
# push: | ||
# tags: | ||
# - '*' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Login to GitHub Container Registry | ||
run: docker login --username "${{ github.actor }}" --password ${{ secrets.GITHUB_TOKEN }} ghcr.io | ||
|
||
- name: ref name | ||
run: echo ${{ github.ref_name }} | ||
|
||
- name: Checkout codebase | ||
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 | ||
|
||
- name: Setup Docker buildx | ||
run: docker buildx create --use | ||
|
||
- name: Build Docker images | ||
run: docker buildx build --platform linux/amd64,linux/arm64 --tag ${{ github.repository }} --push . |