Skip to content

Normalize tag and owner to lowercase #4

Normalize tag and owner to lowercase

Normalize tag and owner to lowercase #4

Workflow file for this run

name: Build and Push Docker Image
on:
push:
tags:
- 'v*'
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Log in to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build and Push Docker Image
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: |
ghcr.io/sylvesterdamgaard/s3-mirror:${{ github.ref_name }}
ghcr.io/sylvesterdamgaard/s3-mirror:latest