push images to github
This commit is contained in:
parent
9354bf33bd
commit
67797c04b0
1 changed files with 7 additions and 5 deletions
10
.github/workflows/docker-images.yml
vendored
10
.github/workflows/docker-images.yml
vendored
|
|
@ -6,6 +6,8 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
packages: write
|
||||||
steps:
|
steps:
|
||||||
- name: checkout code
|
- name: checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
@ -32,11 +34,11 @@ jobs:
|
||||||
uses: docker/setup-buildx-action@v1
|
uses: docker/setup-buildx-action@v1
|
||||||
|
|
||||||
|
|
||||||
- name: login to docker hub
|
- name: Login to docker hub
|
||||||
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
|
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
|
||||||
|
|
||||||
- name: build the image
|
- name: Build the image
|
||||||
run: |
|
run: |
|
||||||
docker buildx build --push \
|
docker buildx build --push \
|
||||||
--tag edenhaus/bumper:${{ steps.tag_name.outputs.tag }} \
|
--tag ghcr.io/edenhaus/bumper:${{ steps.tag_name.outputs.tag }} \
|
||||||
--platform linux/amd64,linux/arm/v7,linux/arm64 .
|
--platform linux/amd64,linux/arm/v7,linux/arm64 .
|
||||||
Loading…
Add table
Add a link
Reference in a new issue