Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move Docker image publishing to Publish job #8

Open
AlekSi opened this issue Apr 15, 2021 · 0 comments
Open

Move Docker image publishing to Publish job #8

AlekSi opened this issue Apr 15, 2021 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@AlekSi
Copy link
Owner

AlekSi commented Apr 15, 2021

# skip push for PRs
# move to `publish` job
# TODO https://github.com/AlekSi/golang-tip/issues/8
- name: Login into Docker registries
if: github.event_name != 'pull_request'
run: |
docker login --username aleksi --password ${{ secrets.DOCKERHUB_TOKEN }}
docker login ghcr.io --username aleksi --password ${{ secrets.GITHUB_TOKEN }}
- name: Upload Docker images
if: github.event_name != 'pull_request'
run: |
docker tag golang-tip:${{ env.GO_BRANCH }} aleksi/golang-tip:${{ env.GO_BRANCH }}
docker tag golang-tip:${{ env.GO_BRANCH }} ghcr.io/aleksi/golang-tip:${{ env.GO_BRANCH }}
docker push aleksi/golang-tip:${{ env.GO_BRANCH }}
docker push ghcr.io/aleksi/golang-tip:${{ env.GO_BRANCH }}

@AlekSi AlekSi added enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed labels Apr 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant