Lowercase the user name #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: [main] | |
env: | |
REGISTRY_USER: ${{ github.actor }} | |
REGISTRY_PASSWORD: ${{ github.token }} | |
IMAGE_REGISTRY: ghcr.io/odilhao | |
jobs: | |
build-swaywm: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Log in to ghcr.io | |
uses: redhat-actions/podman-login@v1 | |
with: | |
username: ${{ env.REGISTRY_USER }} | |
password: ${{ env.REGISTRY_PASSWORD }} | |
registry: ${{ env.IMAGE_REGISTRY }} | |
- uses: actions/checkout@v4 | |
- name: Build container | |
run: podman build -t ${{ env.IMAGE_REGISTRY }}/bootc-sway:$(echo ${GITHUB_REF} | tr '/' '_') . | |
- name: Push Image | |
run: podman push ${{ env.IMAGE_REGISTRY }}/bootc-sway:$(echo ${GITHUB_REF} | tr '/' '_') |