This repository has been archived by the owner on Jul 19, 2024. It is now read-only.
Fixed repository path in action (v2) #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Build and push docker image | |
on: | |
push: | |
branches: [main] | |
workflow_dispatch: | |
env: | |
REGISTRY: ghcr.io | |
TAG: latest | |
jobs: | |
build-and-push: | |
runs-on: ubuntu-22.04 | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Login to Container registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ${{ env.REGISTRY }} | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and push image | |
uses: docker/build-push-action@v6 | |
with: | |
file: Dockerfile | |
push: true | |
tags: ${{ env.REGISTRY }}/MadrHacks/jail:${{ env.TAG }} |