Skip to content

Commit

Permalink
Add GitHub workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
pcvolkmer committed May 9, 2024
1 parent 1feede1 commit 62bdea0
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: "Run build and deploy"

on:
push:
branches: [ 'master' ]

jobs:
docker:
runs-on: ubuntu-latest
strategy:
matrix:
version: [18, 19, 20, 21]

steps:
- uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Execute image build and push
run: |
docker build -t ghcr.io/pcvolkmer/jenkins-slave-nodejs:${{version}} ${{version}}
docker push ghcr.io/pcvolkmer/jenkins-slave-nodejs:${{version}}

0 comments on commit 62bdea0

Please sign in to comment.