Updated github workflow

This commit is contained in:
MarcUs7i 2025-02-21 02:37:49 +01:00
parent f2ed606fa9
commit 3308f49962

View file

@ -8,19 +8,19 @@ jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - name: Checkout code
uses: actions/checkout@v2
- name: Log in to GHCR
uses: docker/login-action@v2 - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with: with:
registry: ghcr.io registry: ghcr.io
username: ${{ github.actor }} username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }} password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push - name: Build and push Docker image
uses: docker/build-push-action@v4 run: |
with: docker buildx build --iidfile /tmp/docker-actions-toolkit-bySVbV/iidfile --tag ghcr.io/marcus7i/ulinkshortener:latest --metadata-file /tmp/docker-actions-toolkit-bySVbV/metadata-file --push .
context: .
push: true
no-cache: true
tags: ghcr.io/marcus7i/ulinkshortener:latest