Skip to content

Push Container Image #25

Push Container Image

Push Container Image #25

Workflow file for this run

name: Push Container Image
on:
push:
tags:
- 'v*.*.*'
workflow_dispatch:
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set Version
run: |
version="$(git describe --tags)"
echo "version=$version" >> $GITHUB_ENV
echo "image_version=${version:1}" >> $GITHUB_ENV
- name: Setup QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v6
with:
push: true
tags: |
ddvk/rmfakecloud:latest
ddvk/rmfakecloud:${{ env.image_version }}
platforms:
- linux/amd64

Check failure on line 47 in .github/workflows/dockerhub.yml

View workflow run for this annotation

GitHub Actions / Push Container Image

Invalid workflow file

The workflow is not valid. .github/workflows/dockerhub.yml (Line: 47, Col: 13): A sequence was not expected
- linux/arm/v7
- linux/arm64
build-args: |
VERSION=${{ env.version }}
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}