fix workflows

This commit is contained in:
Alberto Xamin 2020-11-21 22:51:59 +01:00
parent 02bbf866a3
commit 3dc40f4eb7
No known key found for this signature in database
GPG Key ID: 4F026F48309500A2
2 changed files with 2 additions and 22 deletions

View File

@ -8,10 +8,10 @@ jobs:
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Build the Backend Docker image - name: Build the Backend Docker image
run: cd backend;docker build . --file Dockerfile --tag bang-backend:latest run: cd backend;docker build . --file Dockerfile --tag albertoxamin/bang-backend:latest
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Build the Frontend Docker image - name: Build the Frontend Docker image
run: cd frontend;docker build . --file Dockerfile --tag bang-frontend:latest run: cd frontend;docker build . --file Dockerfile --tag albertoxamin/bang-frontend:latest
- name: Log into registry - name: Log into registry
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
- name: Push iamges - name: Push iamges

View File

@ -1,20 +0,0 @@
name: Publish Docker image
on:
release:
types: [published]
jobs:
push_to_registry:
name: Push Docker image to GitHub Packages
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Push to GitHub Packages
uses: docker/build-push-action@v1
with:
context: backend
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: docker.pkg.github.com
repository: albertoxamin/bang/bang-backend
tag_with_ref: true