Skip to content

Commit

Permalink
CI: Use reusable container-build-bush
Browse files Browse the repository at this point in the history
  • Loading branch information
bbusse committed Nov 24, 2024
1 parent 544256f commit 0e4d019
Showing 1 changed file with 9 additions and 31 deletions.
40 changes: 9 additions & 31 deletions .github/workflows/container-image.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build Container Image
name: Build and release container

on:
push:
Expand All @@ -14,33 +14,11 @@ on:
workflow_dispatch:

jobs:

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up QEMU
uses: docker/setup-qemu-action@v2

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

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

- name: Build and push to ghcr
id: docker_build
uses: docker/build-push-action@v4
with:
platforms: linux/arm64, linux/amd64
file: Containerfile
push: true
tags: ghcr.io/bbusse/swayvnc-firefox:latest

- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}
container-build-push:
uses: bbusse/github-workflows/.github/workflows/container-build-push.yaml@dev
with:
image_name: 'swayvnc-firefox'
image_repository: 'bbusse/swayvnc-firefox'
image_tags: ghcr.io/bbusse/swayvnc-firefox:${{ github.sha }},ghcr.io/bbusse/swayvnc-firefox:latest
container_registry: 'ghcr'
container_push_to_registry: true

0 comments on commit 0e4d019

Please sign in to comment.