Skip to content

ci: Change get-current-time owner name #3

ci: Change get-current-time owner name

ci: Change get-current-time owner name #3

Workflow file for this run

name: Build
permissions:
contents: read
packages: write
on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:
jobs:
shellcheck:
name: Shellcheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run Shellcheck
uses: ludeeus/action-shellcheck@master
docker:
name: Docker Build
needs:
- shellcheck
runs-on: ubuntu-latest
steps:
- name: QEMU
uses: docker/setup-qemu-action@v1
- name: BuildKit
uses: docker/setup-buildx-action@v1
- name: Login to GHCR
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Get current time
uses: josStorer/get-current-time@v2
id: current-time
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
push: true
platforms: linux/amd64,linux/arm64
build-args: |
BUILD_DATE=${{ steps.current-time.outputs.time }}
COMMIT_SHA=${{ github.sha }}
tags: |
ghcr.io/${{ github.repository }}:latest
ghcr.io/${{ github.repository }}:${{ github.sha }}
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}