diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml new file mode 100644 index 0000000..6073e5b --- /dev/null +++ b/.github/workflows/build-test.yml @@ -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 diff --git a/.github/workflows/release-build.yml b/.github/workflows/release-build.yml new file mode 100644 index 0000000..4d0f960 --- /dev/null +++ b/.github/workflows/release-build.yml @@ -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