Build and Push Podman Container / build-and-push (push) Canceled after 0s
Co-authored-by: Junie <junie@jetbrains.com>
25 lines
630 B
YAML
25 lines
630 B
YAML
name: Build and Push Podman Container
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build-and-push:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Log in to Gitea Container Registry
|
|
run: |
|
|
echo "${{ secrets.GITHUB_TOKEN }}" | podman login gitea.pkm.physik.tu-darmstadt.de -u ${{ github.actor }} --password-stdin
|
|
|
|
- name: Build and push image
|
|
run: |
|
|
IMAGE_TAG=gitea.pkm.physik.tu-darmstadt.de/${{ github.repository }}:latest
|
|
podman build -t $IMAGE_TAG .
|
|
podman push $IMAGE_TAG
|