Skip to content

Bump the aws-sdk-go group with 4 updates #109

Bump the aws-sdk-go group with 4 updates

Bump the aws-sdk-go group with 4 updates #109

Workflow file for this run

name: CI
on: push
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
goos: [windows, linux, darwin]
goarch: [amd64, arm64]
env:
GOOS: ${{ matrix.goos }}
GOARCH: ${{ matrix.goarch }}
CGO_ENABLED: 0 # static binary
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.22.6
- run: make dist
- id: vars
run: echo "distpath=$(make distpath)" >> $GITHUB_OUTPUT
- uses: actions/upload-artifact@v4
with:
name: ${{ steps.vars.outputs.distpath }}
path: ${{ steps.vars.outputs.distpath }}
- run: sha256sum ${{ steps.vars.outputs.distpath }} > ${{ steps.vars.outputs.distpath }}.sha256
- uses: actions/upload-artifact@v4
with:
name: ${{ steps.vars.outputs.distpath }}.sha256
path: ${{ steps.vars.outputs.distpath }}.sha256
containerise:
runs-on: ubuntu-latest
needs: [build]
if: ${{ github.actor != 'dependabot[bot]' }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- uses: actions/download-artifact@v4
with:
path: artifacts
- run: |
mkdir dist
ls -lhR artifacts/
mv artifacts/*.tar.gz/* dist/ # ignore Windows and checksums
- run: python3 bin/artifact_docker_reorg.py dist/ docker/
- uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v3
with:
username: gebn
password: ${{ secrets.DOCKERHUB_TOKEN }}
- id: vars
run: echo "tag=$(make tag)" >> $GITHUB_OUTPUT
- uses: docker/build-push-action@v6
with:
context: .
push: true
platforms: linux/amd64,linux/arm64
tags: gebn/unifibackup:${{ steps.vars.outputs.tag }}
release:
runs-on: ubuntu-latest
needs: [build]
if: startsWith(github.ref, 'refs/tags/v')
permissions:
# Required to create a release.
contents: write
steps:
- uses: actions/download-artifact@v4
with:
path: artifacts
- uses: softprops/action-gh-release@v2
with:
draft: true
prerelease: ${{ contains(github.ref, '-') }}
files: |
artifacts/*/*