-
Notifications
You must be signed in to change notification settings - Fork 6
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
78e8200
commit 9e0f7be
Showing
2 changed files
with
66 additions
and
6 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 |
---|---|---|
@@ -1,8 +1,9 @@ | ||
name: Rolling pipeline | ||
name: Release to ghcr | ||
|
||
on: | ||
push: | ||
branches: ['main'] | ||
tags: | ||
- 'v[0-9]+.[0-9]+.[0-9]+' | ||
|
||
env: | ||
REGISTRY: ghcr.io | ||
|
@@ -32,11 +33,23 @@ jobs: | |
with: | ||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} | ||
|
||
# Store the version, stripping any v-prefix | ||
- name: Write release version | ||
run: | | ||
TAG=${{ github.event.release.tag_name }} | ||
echo "VERSION=${TAG#v}" >> $GITHUB_ENV | ||
- name: Build and push Docker image | ||
uses: docker/[email protected] | ||
with: | ||
file: ./files/Dockerfile | ||
context: ./files | ||
file: ./files/docker/Dockerfile | ||
context: ./files/docker | ||
push: true | ||
tags: ghcr.io/cern-cert/pdnssoc:latest | ||
labels: ${{ steps.meta.outputs.labels }} | ||
tags: | | ||
ghcr.io/cern-cert/pdnssoc:latest | ||
ghcr.io/cern-cert/pdnssoc:${VERSION} | ||
labels: ${{ steps.meta.outputs.labels }} | ||
build-args: | | ||
GO_DNSCOLLECTOR_VERSION:="0.35.0" | ||
SUPERCRONIC_VERSION="v0.2.26" | ||
PDNSSOC_CLI_VERSION="v0.0.2.dev5" |
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,47 @@ | ||
name: Release edge version to ghcr | ||
|
||
on: | ||
push: | ||
branches: ['main'] | ||
|
||
env: | ||
REGISTRY: ghcr.io | ||
IMAGE_NAME: ${{ github.repository }} | ||
|
||
jobs: | ||
build-and-push-image: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Log in to the Container registry | ||
uses: docker/[email protected] | ||
with: | ||
registry: ${{ env.REGISTRY }} | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Extract metadata (tags, labels) for Docker | ||
id: meta | ||
uses: docker/[email protected] | ||
with: | ||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} | ||
|
||
- name: Build and push Docker image | ||
uses: docker/[email protected] | ||
with: | ||
file: ./files/docker/Dockerfile | ||
context: ./files/docker | ||
push: true | ||
tags: | | ||
ghcr.io/cern-cert/pdnssoc:edge | ||
labels: ${{ steps.meta.outputs.labels }} | ||
build-args: | | ||
GO_DNSCOLLECTOR_VERSION:="0.35.0" | ||
SUPERCRONIC_VERSION="v0.2.26" | ||
PDNSSOC_CLI_VERSION="v0.0.2.dev5" |