Skip to content

Commit

Permalink
Add tagging for LTS and latest
Browse files Browse the repository at this point in the history
  • Loading branch information
pcvolkmer committed May 9, 2024
1 parent 8636607 commit a9e5292
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ on:
push:
branches: [ 'master' ]

env:
LTS: 18
LATEST: 22

jobs:
docker:
runs-on: ubuntu-latest
Expand All @@ -28,3 +32,15 @@ jobs:
run: |
docker build -t ghcr.io/pcvolkmer/jenkins-slave-nodejs:${{matrix.node-version}} ${{matrix.node-version}}
docker push ghcr.io/pcvolkmer/jenkins-slave-nodejs:${{matrix.node-version}}
- name: Tag and push 'latest'
if: ${{matrix.node-version == env.LATEST}}
run: |
docker tag ghcr.io/pcvolkmer/jenkins-slave-nodejs:${{matrix.node-version}} ghcr.io/pcvolkmer/jenkins-slave-nodejs:latest
docker push ghcr.io/pcvolkmer/jenkins-slave-nodejs:latest
- name: Tag and push 'lts'
if: ${{matrix.node-version == env.LTS}}
run: |
docker tag ghcr.io/pcvolkmer/jenkins-slave-nodejs:${{matrix.node-version}} ghcr.io/pcvolkmer/jenkins-slave-nodejs:lts
docker push ghcr.io/pcvolkmer/jenkins-slave-nodejs:lts

0 comments on commit a9e5292

Please sign in to comment.