Skip to content
This repository was archived by the owner on Oct 30, 2020. It is now read-only.

Commit 28ca512

Browse files
committed
Change Docker image tag versioning style
1 parent fdbb6ea commit 28ca512

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
.
3636
3737
- name: Tag Docker image
38-
run: docker tag base ${DOCKER_IMAGE}:${GITHUB_SHA}
38+
run: docker tag base ${DOCKER_IMAGE}:build-${{ github.run_number }}
3939
env:
4040
DOCKER_IMAGE: docker.pkg.github.com/${{ github.repository }}/observed
4141

@@ -44,6 +44,12 @@ jobs:
4444
env:
4545
DOCKER_IMAGE: docker.pkg.github.com/${{ github.repository }}/observed
4646

47+
- name: Remove old Docker images
48+
uses: actions/delete-package-versions@v1
49+
with:
50+
package-name: observed
51+
num-old-versions-to-delete: 1
52+
4753
github_pages:
4854
name: GitHub Pages
4955
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)