fix workflows
This commit is contained in:
parent
02bbf866a3
commit
3dc40f4eb7
4
.github/workflows/docker-image.yml
vendored
4
.github/workflows/docker-image.yml
vendored
@ -8,10 +8,10 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- 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
|
||||
- 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
|
||||
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
|
||||
- name: Push iamges
|
||||
|
20
.github/workflows/docker-publish.yml
vendored
20
.github/workflows/docker-publish.yml
vendored
@ -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
|
Loading…
Reference in New Issue
Block a user