Skip to content

Commit 0448c21

Browse files
authored
Container action (#536)
* Add GitHub workflow to publish containers * Update container workflow --------- Signed-off-by: Derek Hower <[email protected]>
1 parent 8dbb9a0 commit 0448c21

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

.github/workflows/container.yml

+3-6
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,7 @@ jobs:
4141
name: Build container
4242
run: ./bin/build_container
4343

44-
- name: Check if container is already published
45-
run: |
46-
curl --silent -f --head -lL https://hub.docker.com/v2/repositories/riscvintl/spec-generator/tags/${{ env.TAG }}
47-
echo "CURL_EXIT_CODE=$?" >> $GITHUB_ENV
48-
4944
- name: Upload singularity container
50-
if: env.CURL_EXIT_CODE != '0'
5145
run: |
5246
singularity registry login -u ${{ secrets.DOCKERHUB_USERNAME }} -p ${{ secrets.DOCKERHUB_TOKEN }}
5347
singularity push .singularity/image-${{ env.TAG }}.img oras://docker.io/riscvintl/spec-generator:${{ env.TAG }}
@@ -57,6 +51,9 @@ jobs:
5751
env:
5852
DOCKER: 1
5953
steps:
54+
- name: Clone Github Repo Action
55+
uses: actions/checkout@v4
56+
6057
- name: Get container tag
6158
run: |
6259
TAG=$(cat bin/.container-tag)

0 commit comments

Comments
 (0)