-
-
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.
feat: add github ci to publish container
Signed-off-by: Robert Waffen <[email protected]>
- Loading branch information
Showing
1 changed file
with
44 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,44 @@ | ||
--- | ||
name: Build and publish a 🛢️ container | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'main' | ||
tags: | ||
- '*' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build-and-push-container: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
steps: | ||
- name: Get semantic-release version | ||
id: get_version | ||
run: echo "sr_version="$(jq -r '.dependencies."semantic-release"' package.json | sed 's/\^//') >> $GITHUB_ENV | ||
|
||
- name: test output | ||
run: echo "sr_version=${{ steps.get_version.outputs.sr_version }}" | ||
|
||
# - name: Build Vox Pupuli semantic-release container | ||
# uses: voxpupuli/gha-build-and-publish-a-container@v2 | ||
# with: | ||
# registry_password: ${{ secrets.GITHUB_TOKEN }} | ||
# build_arch: linux/amd64,linux/arm64 | ||
# docker_username: voxpupulibot | ||
# docker_password: ${{ secrets.DOCKERHUB_BOT_PASSWORD }} | ||
# tags: | | ||
# ghcr.io/voxpupuli/semantic-release:${{ steps.get_version.outputs.sr_version }} | ||
# ghcr.io/voxpupuli/semantic-release:latest | ||
# docker.io/voxpupuli/semantic-release:${{ steps.get_version.outputs.sr_version }} | ||
# docker.io/voxpupuli/semantic-release:latest | ||
|
||
# - name: Update Docker Hub Description | ||
# uses: peter-evans/dockerhub-description@v4 | ||
# with: | ||
# username: voxpupulibot | ||
# password: ${{ secrets.DOCKERHUB_BOT_PASSWORD }} | ||
# repository: voxpupuli/semantic-release |