Skip to content

Commit 9b3b700

Browse files
committed
Use github context instead of env
1 parent 1b89adf commit 9b3b700

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build Container Image
1+
name: Build Image
22

33
on:
44
push:

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Release Image on Docker Hub
1+
name: Release Image
22

33
on:
44
push:
@@ -18,10 +18,10 @@ jobs:
1818
docker run --rm -v $(pwd):/app:ro html5validator html5validator --svg tests/fixtures/valid.svg
1919
- name: Tag the image
2020
run: |
21-
docker tag html5validator docker.io/painless/html5validator:${{ env.GITHUB_REF_NAME }}
22-
docker tag html5validator docker.io/painless/html5validator:latest
21+
docker tag html5validator painless/html5validator:${{ github.ref_name }}
22+
docker tag html5validator painless/html5validator:latest
2323
- name: Push the image
2424
run: |
2525
docker login docker.io -u "${{ secrets.DOCKERHUB_USERNAME }}" -p "${{ secrets.DOCKERHUB_PASSWORD }}"
26-
docker push docker.io/painless/html5validator --all-tags
26+
docker push painless/html5validator --all-tags
2727
docker logout

0 commit comments

Comments
 (0)