Skip to content

Commit e8265da

Browse files
authored
test: rebuild
1 parent e82e51e commit e8265da

File tree

1 file changed

+33
-33
lines changed

1 file changed

+33
-33
lines changed

.github/workflows/puppeteer-container.yml

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -28,51 +28,51 @@ jobs:
2828
echo "name=$IMAGE_ID" >> "$GITHUB_OUTPUT"
2929
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
3030
31-
# build:
32-
# runs-on: ubuntu-latest
33-
# needs: prepare
31+
build:
32+
runs-on: ubuntu-latest
33+
needs: prepare
3434

35-
# permissions:
36-
# contents: read
37-
# packages: write
38-
# attestations: write
39-
# id-token: write
35+
permissions:
36+
contents: read
37+
packages: write
38+
attestations: write
39+
id-token: write
4040

41-
# steps:
42-
# - name: Workaround Windows mess and set git to keep original line endings
43-
# run: git config --global core.autocrlf false
41+
steps:
42+
- name: Workaround Windows mess and set git to keep original line endings
43+
run: git config --global core.autocrlf false
4444

45-
# - uses: actions/checkout@v4
45+
- uses: actions/checkout@v4
4646

47-
# - run: podman --version
47+
- run: podman --version
4848

49-
# - name: Build container image
50-
# run: |
51-
# podman build -t "$IMAGE_NAME" -f puppeteer.containerfile \
52-
# --label "org.opencontainers.image.source=$GITHUB_SERVER_URL/$GITHUB_REPOSITORY" \
53-
# --label "org.opencontainers.image.description=Puppeteer container" \
54-
# --label "org.opencontainers.image.licenses=MIT"
49+
- name: Build container image
50+
run: |
51+
podman build -t "$IMAGE_NAME" -f puppeteer.containerfile \
52+
--label "org.opencontainers.image.source=$GITHUB_SERVER_URL/$GITHUB_REPOSITORY" \
53+
--label "org.opencontainers.image.description=Puppeteer container" \
54+
--label "org.opencontainers.image.licenses=MIT"
5555
56-
# - name: List images
57-
# run: podman images
56+
- name: List images
57+
run: podman images
5858

59-
# - name: Test run
60-
# run: podman run --rm --init --userns=keep-id -v $(pwd):/app -w /app $IMAGE_NAME ls -la
59+
- name: Test run
60+
run: podman run --rm --init --userns=keep-id -v $(pwd):/app -w /app $IMAGE_NAME ls -la
6161

62-
# - name: Login in to registry
63-
# if: success()
64-
# run: echo "${{ secrets.GITHUB_TOKEN }}" | podman login ${{ env.REGISTRY }} -u ${{ github.actor }} --password-stdin
62+
- name: Login in to registry
63+
if: success()
64+
run: echo "${{ secrets.GITHUB_TOKEN }}" | podman login ${{ env.REGISTRY }} -u ${{ github.actor }} --password-stdin
6565

66-
# - name: Push container image
67-
# if: success()
68-
# run: |
69-
# IMAGE=${{ needs.prepare.outputs.name }}:${{ needs.prepare.outputs.version }}
70-
# podman tag $IMAGE_NAME $IMAGE
71-
# podman push $IMAGE
66+
- name: Push container image
67+
if: success()
68+
run: |
69+
IMAGE=${{ needs.prepare.outputs.name }}:${{ needs.prepare.outputs.version }}
70+
podman tag $IMAGE_NAME $IMAGE
71+
podman push $IMAGE
7272
7373
test:
7474
runs-on: ubuntu-latest
75-
needs: [ prepare ]
75+
needs: [ prepare, build ]
7676
defaults:
7777
run:
7878
working-directory: /app

0 commit comments

Comments
 (0)