Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions .github/workflows/release-container.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# ref: https://github.com/marketplace/actions/build-and-push-docker-images

name: Release container image

on:
release:
types: [published]

jobs:
context:
runs-on: ubuntu-latest

permissions:
contents: read
packages: write

steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

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

- name: Build and push
uses: docker/build-push-action@v4
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
push: true

registry: ghcr.io
organization: "${{ github.event.repository.owner.login }}"
repository: "${{ github.event.repository.name }}"

platforms: |
linux/amd64
linux/arm64

tags: |
latest
${{ github.event.release.tag_name }}
45 changes: 45 additions & 0 deletions .github/workflows/testing-container.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# ref: https://docs.github.com/en/actions/publishing-packages/publishing-docker-images

name: Testing container image

on:
push:
branches:
- 'develop'

jobs:
context:
runs-on: ubuntu-latest

permissions:
contents: read
packages: write

steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

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

- name: Build and push
uses: docker/build-push-action@v4
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
push: true

registry: ghcr.io
organization: "${{ github.event.repository.owner.login }}"
repository: "${{ github.event.repository.name }}"

platforms: |
linux/amd64
linux/arm64

tags: |
develop
${{ github.sha }}