Skip to content

Commit

Permalink
Merge pull request #2 from wandera/TRIVIAL-add-github-action
Browse files Browse the repository at this point in the history
TRIVIAL add GH action to build the container image in ghcr.io
  • Loading branch information
coufalja authored Apr 24, 2023
2 parents 6a995cf + 88440e8 commit 7715905
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Release

on:
push:
tags:
- "v*.*.*"

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
TAG: ${{ github.ref_name }}

jobs:
release-docker-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Log in to the Container registry
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Docker build & push
uses: docker/build-push-action@v4
with:
push: true
context: .
build-args: |
VERSION=${{ github.ref_name }}
tags: ${{ steps.meta.outputs.tags }}

0 comments on commit 7715905

Please sign in to comment.