Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

Commit

Permalink
push built image to docker hub
Browse files Browse the repository at this point in the history
  • Loading branch information
erinbit committed Jan 29, 2020
1 parent f345d4e commit f79ff4c
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/dockerpush.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ on:
# Run tests for any PRs.
pull_request:

env:
IMAGE_NAME: phpco

jobs:
# Run tests.
# See also https://docs.docker.com/docker-hub/builds/automated-testing/
Expand Down Expand Up @@ -49,12 +46,12 @@ jobs:
- name: Build image
run: docker build . --file Dockerfile --tag image

- name: Log into registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u ${{ github.actor }} --password-stdin
- name: Log into docker hub
run: echo ${{ secrets.DOCKER_HUB_TOKEN }} | docker login -u fortrabbitadmin --password-stdin

- name: Push image
run: |
IMAGE_ID=docker.pkg.github.com/${{ github.repository }}/$IMAGE_NAME
IMAGE_ID=frbit/phpco
# Strip git ref prefix from version
VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')
Expand Down

0 comments on commit f79ff4c

Please sign in to comment.