Skip to content

Commit

Permalink
ci: Build and push container
Browse files Browse the repository at this point in the history
  • Loading branch information
bbusse committed Feb 13, 2025
1 parent 28af7ec commit 5946f95
Showing 1 changed file with 8 additions and 31 deletions.
39 changes: 8 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,10 @@ 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@v3
with:
platforms: linux/arm64, linux/amd64
file: Containerfile
push: true
tags: ghcr.io/bbusse/swayvnc: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'
image_repository: 'bbusse/swayvnc'
container_registry: 'ghcr'
container_push_to_registry: true

0 comments on commit 5946f95

Please sign in to comment.