-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pull pause image from k8s.io, tag and push to ghcr.io/canonical
- Loading branch information
1 parent
af5c839
commit 028f2d6
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Publish | ||
|
||
on: | ||
push: | ||
branches: | ||
- "eaudetcobello/KU-617" | ||
|
||
jobs: | ||
|
||
publish: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Log in to the Container registry | ||
uses: docker/login-action@b4bedf8053341df3b5a9f9e0f2cf4e79e27360c6 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Pull Image from Kubernetes Registry | ||
run: docker pull registry.k8s.io/pause:3.7 | ||
|
||
- name: Tag the image | ||
run: docker tag registry.k8s.io/pause:3.7 ghcr.io/canonical/pause:3.7 | ||
|
||
- name: Push the image to GitHub Container Registry | ||
run: docker push ghcr.io/canonical/pause:3.7 |