1
0
mirror of https://github.com/b4tman/docker-squid.git synced 2024-11-22 03:06:53 +00:00

push to GitHub Package Registry (#15)

* push docker image to GitHub

* fix yaml
This commit is contained in:
Dmitry Belyaev 2019-09-24 15:46:08 +03:00 committed by GitHub
parent 5092f79c09
commit 8394735252
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,6 +18,26 @@ jobs:
steps:
- uses: actions/checkout@v1
- name: Build the Docker image
run: docker build . --file Dockerfile --tag b4tman/squid:$(date +%s)
run: docker build . --file Dockerfile --tag b4tman/squid
- name: Test image
run: docker-compose -f docker-compose.test.yml up sut
- name: Build 'ssl-bump' Docker image
run: docker build ssl-bump --tag b4tman/squid:ssl-bump
- name: GituHub Packages - Docker Login
if: github.event_name == 'push'
run: docker login docker.pkg.github.com -u ${{secrets.GITHUB_PKGS_LOGIN}} -p ${{secrets.GITHUB_PKGS_TOKEN}}
- name: GituHub Packages - Docker Tag
if: github.event_name == 'push'
run: docker tag b4tman/squid docker.pkg.github.com/${{github.repository}}/squid:$(echo ${{github.ref}} | sed 's/.*\/.*\///')
- name: GituHub Packages - Docker Tag 'ssl-bump'
if: github.event_name == 'push'
run: docker tag b4tman/squid:ssl-bump docker.pkg.github.com/${{github.repository}}/ssl-bump:$(echo ${{github.ref}} | sed 's/.*\/.*\///')
- name: GituHub Packages - Docker Push
if: github.event_name == 'push'
run: docker push b4tman/squid docker.pkg.github.com/${{github.repository}}/squid:$(echo ${{github.ref}} | sed 's/.*\/.*\///')
- name: GituHub Packages - Docker Push 'ssl-bump'
if: github.event_name == 'push'
run: docker push b4tman/squid docker.pkg.github.com/${{github.repository}}/ssl-bump:$(echo ${{github.ref}} | sed 's/.*\/.*\///')
- name: GituHub Packages - Docker Logout
if: github.event_name == 'push'
run: docker logout docker.pkg.github.com