Skip to content

Commit

Permalink
gh build action #2
Browse files Browse the repository at this point in the history
  • Loading branch information
ljocha committed Apr 11, 2024
1 parent 8544f58 commit c4d2182
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#! vim: ts=2 expandtab:

name: docker

on: [ workflow_dispatch, pull_request, push ]
Expand All @@ -13,8 +15,14 @@ jobs:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Repo lowercase
id: lc
run: |
repo="${{ githlub.repository }}"
echo "::set-output name=repo::${repo,,}"
- name: Build and push
uses: docker/build-push-action@v5
with:
push: true
tags: ghcr.io/${{ github.repository }}:latest
tags: ghcr.io/${{ steps.lc.outputs.repo }}:latest

0 comments on commit c4d2182

Please sign in to comment.