This commit is contained in:
parent
c50b4a18a1
commit
fafb96cf08
|
@ -17,11 +17,13 @@ jobs:
|
|||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
- uses: actions/checkout@v4
|
||||
- name: Echo Build Version ${{ github.ref_name }}
|
||||
run: echo "Building version ${{ github.ref_name }}"
|
||||
- name: Docker Build
|
||||
run: docker build --push --build-arg REDMAGE_RUNTIME_VERSION=${{ github.ref_name }} -t git.tigor.web.id/tigor/redmage:${{ github.ref_name }} -t git.tigor.web.id/tigor/redmage:latest .
|
||||
#- name: Docker Push Image Version ${{ github.ref_name }}
|
||||
# run: docker image push git.tigor.web.id/tigor/redmage:${{ github.ref_name }}
|
||||
#- name: Docker Push Image Latest
|
||||
# run: docker image push git.tigor.web.id/tigor/redmage:latest
|
||||
- name: Docker Build and Push to Forgejo Registry
|
||||
run: docker buildx build --push --build-arg REDMAGE_RUNTIME_VERSION=${{ github.ref_name }} -t git.tigor.web.id/tigor/redmage:${{ github.ref_name }} -t git.tigor.web.id/tigor/redmage:latest .
|
||||
- name: Login to Github Docker Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ secrets.GHCR_USERNAME }}
|
||||
password: ${{ secrets.GHCR_PASSWORD }}
|
||||
- name: Docker Build and Push to Github Registry
|
||||
run: docker buildx build --push --build-arg REDMAGE_RUNTIME_VERSION=${{ github.ref_name }} -t ghrc.io/tigor/redmage:${{ github.ref_name }} -t ghcr.io/tigor/redmage:latest .
|
||||
|
|
Loading…
Reference in a new issue