Try building and pushing using Github token

This commit is contained in:
Jamil Bou Kheir
2020-04-23 22:55:07 -07:00
parent 6712c0c7e7
commit 47a14ca5bf

View File

@@ -46,12 +46,13 @@ jobs:
needs: unit-integration-test
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: Build Docker Image
# Repository name must be lowercase
run: docker build -t docker.pkg.github.com/cloudfire-llc/cloudfire-ce/cloudfire:${GITHUB_SHA::8} -f Dockerfile .
- name: Push Docker Image
run: docker push docker.pkg.github.com/cloudfire-llc/cloudfire-ce/cloudfire:${GITHUB_SHA::8}
- uses: docker/build-push-action@v1
with:
username: jamilbk
password: ${{ secrets.GITHUB_TOKEN }}
repository: docker.pkg.github.com/cloudfire-llc/cloudfire-ce/cloudfire
tag_with_ref: true
tag_with_sha: true
# 3. Functional Test
docker-compose-up: