Skip to content

Update actions/checkout action to v4 #45

Update actions/checkout action to v4

Update actions/checkout action to v4 #45

Workflow file for this run

name: publish
on: [push]
jobs:
publish-hello-world-image:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build the hello-world Docker image
run: |
docker build . --tag ghcr.io/jonashackt/hello-world:latest
docker run ghcr.io/jonashackt/hello-world:latest
docker push ghcr.io/jonashackt/hello-world:latest