mirror of
https://github.com/b4tman/docker-squid.git
synced 2024-11-01 02:16:52 +00:00
Migrate to GitHub Container Registry
from GitHub Packages https://docs.github.com/en/free-pro-team@latest/packages/getting-started-with-github-container-registry/migrating-to-github-container-registry-for-docker-images
This commit is contained in:
parent
c3138cec07
commit
6eb782b5a6
@ -20,10 +20,10 @@ steps:
|
|||||||
- name: squid-armhf image for github packages
|
- name: squid-armhf image for github packages
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
settings:
|
settings:
|
||||||
repo: docker.pkg.github.com/b4tman/docker-squid/squid-armhf
|
repo: ghcr.io/b4tman/squid-armhf
|
||||||
auto_tag: true
|
auto_tag: true
|
||||||
pull_image: true
|
pull_image: true
|
||||||
registry: docker.pkg.github.com
|
registry: ghcr.io
|
||||||
username: b4tman
|
username: b4tman
|
||||||
password:
|
password:
|
||||||
from_secret: github_password
|
from_secret: github_password
|
||||||
|
6
.github/workflows/dockerimage.yml
vendored
6
.github/workflows/dockerimage.yml
vendored
@ -42,11 +42,11 @@ jobs:
|
|||||||
run: docker build ssl-bump --tag b4tman/squid:ssl-bump
|
run: docker build ssl-bump --tag b4tman/squid:ssl-bump
|
||||||
|
|
||||||
- name: Log into registry
|
- name: Log into registry
|
||||||
run: echo "${{ secrets.GITHUB_PKGS_TOKEN }}" | docker login docker.pkg.github.com -u ${{ github.actor }} --password-stdin
|
run: echo "${{ secrets.CR_PAT }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
|
||||||
|
|
||||||
- name: Push squid image
|
- name: Push squid image
|
||||||
run: |
|
run: |
|
||||||
IMAGE_ID=docker.pkg.github.com/${{ github.repository }}/squid
|
IMAGE_ID=ghcr.io/${{ github.actor }}/squid
|
||||||
|
|
||||||
# Strip git ref prefix from version
|
# Strip git ref prefix from version
|
||||||
VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')
|
VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')
|
||||||
@ -65,7 +65,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Push 'ssl-bump' image
|
- name: Push 'ssl-bump' image
|
||||||
run: |
|
run: |
|
||||||
IMAGE_ID=docker.pkg.github.com/${{ github.repository }}/ssl-bump
|
IMAGE_ID=ghcr.io/${{ github.actor }}/squid-ssl-bump
|
||||||
|
|
||||||
# Strip git ref prefix from version
|
# Strip git ref prefix from version
|
||||||
VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')
|
VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')
|
||||||
|
Loading…
Reference in New Issue
Block a user