Skip to content

Commit

Permalink
test for public registry 2
Browse files Browse the repository at this point in the history
  • Loading branch information
MaDMeuy committed Nov 14, 2024
1 parent 1f5cc1c commit e1d768c
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 9 deletions.
48 changes: 40 additions & 8 deletions .github/workflows/build-docker-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,16 @@ jobs:
- name: Push Docker image
run: |
docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:testing_base_bookworm-${{ github.sha }} --public
docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest --public
docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:testing_base_bookworm-${{ github.sha }}
docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
- name: Make package public
run: |
curl -X PATCH \
-H "Authorization: Bearer ${{ secrets.GHCR_PAT }}" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/orgs/YOUR_ORG/packages/container/slaclab%2Fmohs_docker/versions/latest \
-d '{"visibility":"public"}'
build_ghdl:
name: Build and Push Dockerfile.ghdl
Expand Down Expand Up @@ -78,8 +86,16 @@ jobs:
- name: Push Docker image
run: |
docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:ghdl-${{ github.sha }} --public
docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest --public
docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:ghdl-${{ github.sha }}
docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
- name: Make package public
run: |
curl -X PATCH \
-H "Authorization: Bearer ${{ secrets.GHCR_PAT }}" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/orgs/YOUR_ORG/packages/container/slaclab%2Fmohs_docker/versions/latest \
-d '{"visibility":"public"}'
build_litex_env_bookworm:
name: Build and Push Dockerfile.litex_env_bookworm
Expand Down Expand Up @@ -113,8 +129,16 @@ jobs:
- name: Push Docker image
run: |
docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:litex_env_bookworm-${{ github.sha }} --public
docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest --public
docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:litex_env_bookworm-${{ github.sha }}
docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
- name: Make package public
run: |
curl -X PATCH \
-H "Authorization: Bearer ${{ secrets.GHCR_PAT }}" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/orgs/YOUR_ORG/packages/container/slaclab%2Fmohs_docker/versions/latest \
-d '{"visibility":"public"}'
build_xilinx_env_bookworm:
name: Build and Push Dockerfile.xilinx_env_bookworm
Expand Down Expand Up @@ -148,5 +172,13 @@ jobs:
- name: Push Docker image
run: |
docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:xilinx_env_bookworm-${{ github.sha }} --public
docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest --public
docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:xilinx_env_bookworm-${{ github.sha }}
docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
- name: Make package public
run: |
curl -X PATCH \
-H "Authorization: Bearer ${{ secrets.GHCR_PAT }}" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/orgs/YOUR_ORG/packages/container/slaclab%2Fmohs_docker/versions/latest \
-d '{"visibility":"public"}'
2 changes: 1 addition & 1 deletion Dockerfile.ghdl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM debian:buster-slim as ghdl

# GHDL
# GHDL
RUN apt-get update && apt-get install -y ghdl ghdl-llvm ghdl-gcc ghdl-mcode

0 comments on commit e1d768c

Please sign in to comment.