Skip to content

Commit

Permalink
adding CI/CD build workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderrichards committed Oct 19, 2023
1 parent 55ee090 commit 449cadf
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: CI build test workflow

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64
tags: alexanderrichards/cvmfs:1.0.0
28 changes: 28 additions & 0 deletions .github/workflows/release-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: CD release build and publish

on:
release:
types: [released]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build
uses: docker/build-push-action@v5
with:
push: true
context: .
platforms: linux/amd64
tags: alexanderrichards/cvmfs:${{ github.event.release.tag_name }},alexanderrichards/cvmfs:latest

0 comments on commit 449cadf

Please sign in to comment.