Skip to content

Commit 7cd66d8

Browse files
authored
Fix upload_release_ghcr_container.yaml tagging issues (#64)
* Fix upload_release_ghcr_container.yaml tagging issues - Now uses workflow from https://github.com/teragrep/bos_01/blob/main/.github/workflows/upload_release_ghcr_container.yaml * Use correct image names - Now uses the cfe_16/app image name
1 parent a4aeae1 commit 7cd66d8

1 file changed

Lines changed: 7 additions & 13 deletions

File tree

.github/workflows/upload_release_ghcr_container.yaml

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -28,26 +28,20 @@ jobs:
2828
github-token: ${{ secrets.GITHUB_TOKEN }}
2929
path: rpm
3030

31+
- name: Set up Docker Buildx
32+
uses: docker/setup-buildx-action@v4
33+
3134
- name: Lowercase repository name
3235
run: echo "REPO_LC=${GITHUB_REPOSITORY,,}" >> $GITHUB_ENV
3336

34-
- name: Extract metadata (tags, labels) for Docker
35-
id: meta
36-
uses: docker/[email protected]
37-
with:
38-
images: ghcr.io/${{ env.REPO_LC }}/app
39-
4037
- name: Login to GitHub Container Registry
4138
uses: docker/[email protected]
4239
with:
4340
registry: ghcr.io
4441
username: ${{ github.actor }}
4542
password: ${{ secrets.GITHUB_TOKEN }}
4643

47-
- name: Build and push
48-
uses: docker/[email protected]
49-
with:
50-
context: .
51-
push: true
52-
tags: ${{ steps.meta.outputs.tags }}
53-
labels: ${{ steps.meta.outputs.labels }}
44+
- name: 'Build Image'
45+
run: |
46+
docker buildx build --output type=docker --tag ghcr.io/${{ env.REPO_LC }}/app:${{ github.event.workflow_run.head_branch }} --tag ghcr.io/${{ env.REPO_LC }}/app:latest . -f ./Dockerfile
47+
docker push ghcr.io/${{ env.REPO_LC }}/app --all-tags

0 commit comments

Comments
 (0)