Skip to content

Bump docker/metadata-action (#262) #17

Bump docker/metadata-action (#262)

Bump docker/metadata-action (#262) #17

Workflow file for this run

name: Docker
on:
push:
branches:
- main
- docker # TODO: for testing. remove this line after testing is done.
env:
NIX_VERSION: nix-2.13.2
NIXPKGS_CHANNEL: nixos-22.11
CACHIX_NAME: golden-gate-ggx
OCTOLYTICS_DIMENSION_REPOSITORY_ID: 590614152
GIT_LFS_SKIP_SMUDGE: 1
jobs:
docker-build:
strategy:
matrix:
runtime: [sydney, brooklyn]
fail-fast: false
runs-on: buildjet-32vcpu-ubuntu-2204
steps:
- name: Check out code
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:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@f7b4ed12385588c3f9bc252f0a2b520d83b52d48
with:
images: ggxdocker/ggxnode
- name: Set outputs
id: vars
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: Build and push Docker image
uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0
with:
context: .
file: ./Dockerfile.${{ matrix.runtime }}
push: true
tags: ${{ steps.meta.outputs.tags }},ggxdocker/ggxnode:${{ matrix.runtime }}-${{ steps.vars.outputs.sha_short }}
labels: ${{ steps.meta.outputs.labels }}