-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #69 from illallangi/repo-sync/github/default
🔄 synced file(s) with illallangi/.github
- Loading branch information
Showing
2 changed files
with
45 additions
and
27 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,45 @@ | ||
--- | ||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: "0" | ||
- id: version | ||
name: Get Version | ||
run: echo "tag=${GITHUB_REF#refs/*/}" >> "${GITHUB_OUTPUT}" | ||
- id: meta | ||
name: Docker meta | ||
uses: docker/metadata-action@v5 | ||
with: | ||
flavor: prefix=v,onlatest=false | ||
images: ghcr.io/${{ github.repository }} | ||
tags: type=semver,pattern={{version}},value=${{ steps.version.outputs.tag }} | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v3 | ||
with: | ||
password: ${{ secrets.PAT }} | ||
registry: ghcr.io | ||
username: ${{ github.repository_owner }} | ||
- name: Build and push | ||
uses: docker/build-push-action@v5 | ||
with: | ||
build-args: | | ||
hooks=adsbs | ||
cache-from: type=gha | ||
cache-to: type=gha,mode=max | ||
context: . | ||
labels: ${{ steps.meta.outputs.labels }} | ||
platforms: linux/amd64,linux/arm64 | ||
push: true | ||
tags: ${{ steps.meta.outputs.tags }} | ||
name: Build and Push | ||
on: | ||
push: | ||
tags: | ||
- "*" |
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 |
---|---|---|
|
@@ -12,33 +12,6 @@ jobs: | |
id: version | ||
name: Bump version and push tag | ||
uses: anothrNick/[email protected] | ||
- id: meta | ||
name: Docker meta | ||
uses: docker/metadata-action@v5 | ||
with: | ||
flavor: prefix=v,onlatest=false | ||
images: ghcr.io/${{ github.repository }} | ||
tags: type=semver,pattern={{version}},value=${{ steps.version.outputs.new_tag }} | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v3 | ||
with: | ||
password: ${{ secrets.PAT }} | ||
registry: ghcr.io | ||
username: ${{ github.repository_owner }} | ||
- name: Build and push | ||
uses: docker/build-push-action@v5 | ||
with: | ||
cache-from: type=gha | ||
cache-to: type=gha,mode=max | ||
context: . | ||
labels: ${{ steps.meta.outputs.labels }} | ||
platforms: linux/amd64,linux/arm64 | ||
push: true | ||
tags: ${{ steps.meta.outputs.tags }} | ||
- env: | ||
GITHUB_REPOSITORY: ${{ github.repository }} | ||
GITHUB_TOKEN: ${{ secrets.PAT }} | ||
|