build(deps): bump alpine from 3.18.3 to 3.18.4 (#158) #219
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: docker-push | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- "v*" | |
jobs: | |
build-and-push: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- name: docker meta | |
id: meta | |
uses: docker/[email protected] | |
with: | |
images: fsouza/docker-ssl-proxy | |
tags: | | |
type=ref,event=branch | |
type=ref,event=pr | |
type=semver,pattern={{version}} | |
type=semver,pattern={{major}}.{{minor}} | |
type=semver,pattern={{major}} | |
- name: setup qemu | |
uses: docker/[email protected] | |
- name: setup buildx | |
id: buildx | |
uses: docker/[email protected] | |
- name: login to docker hub | |
uses: docker/[email protected] | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
- name: build and push | |
uses: docker/[email protected] | |
with: | |
cache-from: fsouzaci/gha-cache:docker-ssl-proxy | |
cache-to: fsouzaci/gha-cache:docker-ssl-proxy | |
context: . | |
push: true | |
tags: ${{ steps.meta.outputs.tags }} | |
labels: ${{ steps.meta.outputs.labels }} | |
platforms: linux/amd64,linux/arm64 |