Skip to content

Commit

Permalink
ci: Automate pushing container images
Browse files Browse the repository at this point in the history
  • Loading branch information
jbruechert committed Apr 9, 2024
1 parent 37f2dc1 commit c9dffa1
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/container-images.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# SPDX-FileCopyrightText: 2024 Jonah Brüchert <[email protected]>
# SPDX-License-Identifier: CC0-1.0

name: Build and publish CI container images

on:
push:
paths:
- "ci/container/Containerfile"
branches:
- "main"
workflow_dispatch:


jobs:
publish-container:
runs-on: ubuntu-latest
permissions:
packages: write
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Build images
run: docker build -t ghcr.io/public-transport/transitous/import:latest . -f ci/container/Containerfile
- name: Log into ghcr.io
run: docker login --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }} ghcr.io
- name: Push images
run: docker push ghcr.io/public-transport/transitous/import:latest

0 comments on commit c9dffa1

Please sign in to comment.