Skip to content

Push images to Docker Hub #3

Push images to Docker Hub

Push images to Docker Hub #3

Workflow file for this run

name: "Push images to Docker Hub"
on: workflow_dispatch
jobs:
build:
name: "Build and push images"
runs-on: "ubuntu-24.04"
steps:
- name: "Check out repository"
uses: "actions/checkout@v4"
- name: "Set up buildx"
uses: "docker/setup-buildx-action@v3"
- name: "Log in to Docker Hub"
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
- name: "Build and push Storage Service"
uses: docker/build-push-action@v6
with:
context: .
push: true
load: true
file: ./Dockerfile
target: "archivematica-storage-service"
tags: hakamine/archivematica-storage-service:latest,hakamine/archivematica-storage-service:${{ env.GITHUB_SHA }},hakamine/archivematica-storage-service:${{ env.GITHUB_REF#refs/heads/ }}

Check failure on line 25 in .github/workflows/push-images.yml

View workflow run for this annotation

GitHub Actions / Push images to Docker Hub

Invalid workflow file

The workflow is not valid. .github/workflows/push-images.yml (Line: 25, Col: 17): Unexpected symbol: 'GITHUB_REF#refs/heads/'. Located at position 5 within expression: env.GITHUB_REF#refs/heads/