name: Build and publish container images on: push: branches: - master jobs: build-and-publish: runs-on: ubuntu-latest container: image: catthehacker/ubuntu:act-latest steps: - name: Check out the repo uses: actions/checkout@v3 - name: Link to docker socket run: | # ln -s ~/.docker/run/docker.sock /var/run/docker.sock ls -l /var/run/docker.sock || \ ls -l ~/.docker/run/docker.sock || \ ls -l ~/.rd/docker.sock || \ ls -l /var/run/user/1000/docker.sock - name: Set up QEMU uses: docker/setup-qemu-action@v2 env: DOCKER_HOST: tcp://localhost:2376 # uses: docker/setup-qemu-action@v1 # with: # image: tonistiigi/binfmt:qemu-v6.0.0 # - name: Install QEMU # run: sudo apt-get update && sudo apt-get install -y qemu-user-static - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 - name: Build and push uses: docker/build-push-action@v4 env: # see ACTIONS_RUNTIME_TOKEN: '' with: context: . push: true tags: gitea.jbrumond.me/images/rotate-backups:8,gitea.jbrumond.me/images/rotate-backups:8.1 platforms: | linux/amd64 linux/arm64