Skip to content

Upload CI and Containerfile #8

Upload CI and Containerfile

Upload CI and Containerfile #8

Workflow file for this run

name: Container
on:
push:
env:
REGISTRY_USER: unike267
REGISTRY_PASSWORD: ${{ github.token }}
IMAGE_REGISTRY: ghcr.io/unike267
permissions: write-all
jobs:
Build_container_test:
runs-on: ubuntu-latest
steps:
- name: '🧰 Checkout'
uses: actions/checkout@v3
- name: '⛴️ Build container'
run: podman build -t ghcr.io/unike267/tmp-container/test-tmp - < .github/Containerfile
- name: '🔑 Login to ghcr.io'
run: echo $REGISTRY_PASSWORD | podman login $IMAGE_REGISTRY -u $REGISTRY_USER --password-stdin
- name: '🛰️ Push image to ghcr.io'
run: podman push ghcr.io/unike267/tmp-container/test-tmp
- name: '🔑 Logout from ghcr.io'
run: podman logout $IMAGE_REGISTRY